package com.cx.base.day17_proxy.cglib;

import java.util.List;

/**
 * @author shkstart
 * @date 8/6/2019 - 3:35 PM
 */
public class ProductService implements Service {

    private int i;

    private Product product;

    public boolean add(Product product) {
        this.product = product;
        this.i = 1;
        System.out.println("ok");
        return true;
    }


    public boolean update(Product product) {
        System.out.println("ok");
        return false;
    }


    public boolean delete(Product product) {
        System.out.println("ok");
        return false;
    }


    public List<Product> get() {
        System.out.println(this.product);
        return null;
    }


    public Product getByID() {
        System.out.println(this.i);
        return null;
    }

}
